package com.cloudkinto.service.platform.vo.product;

import cn.afterturn.easypoi.excel.annotation.Excel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class PlatformProductImportVo {
    @Excel(name = "平台店铺代码", fixedIndex = 0)
    private String storeCode;
    @Excel(name = "管理番号", fixedIndex = 1)
    private String parentSku;
    @Excel(name = "平台sku", fixedIndex = 2)
    private String platformSku;
    @Excel(name = "库存预留占比", fixedIndex = 3)
    private Double stockPercent;
    @Excel(name = "系统sku", fixedIndex = 4)
    private String sku;
    @Excel(name = "数量", fixedIndex = 5)
    private Integer qty;


    public Integer getQty() {
        if (qty == null || qty <= 0) {
            return 1;
        }
        return qty;
    }



}
